﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MebApp.Launcher.Views
{
    public partial class FormMailServerSelect : Form
    {
        public FormMailServerSelect()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.checkBox1.Checked)
            {
                Process.Start("http://mail.meierbei.com/");
            }
            else
            {
                Process.Start("https://exmail.qq.com/cgi-bin/loginpage");
            }
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            this.checkBox1.CheckedChanged -= checkBox1_CheckedChanged;
            this.MessageBoxShow("抱歉我记性不好！");
            this.checkBox1.Checked = false;
            this.checkBox1.CheckedChanged += checkBox1_CheckedChanged;
        }
    }
}
